﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Model.EntityModel.SysModel
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("PERMISSION_META")]
    public class PermissionMeta
    {
        /// <summary>
        /// 主键 
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public decimal Id { get; set; }
        /// <summary>
        /// 权限标识符 (唯一) 
        ///</summary>
        [SugarColumn(ColumnName = "PERM_CODE")]
        public string PermCode { get; set; }
        /// <summary>
        /// 权限名称 
        ///</summary>
        [SugarColumn(ColumnName = "PERM_NAME")]
        public string PermName { get; set; }
        /// <summary>
        /// 权限类型 
        ///</summary>
        [SugarColumn(ColumnName = "PERM_TYPE")]
        public string PermType { get; set; }
        /// <summary>
        /// 父权限ID 
        ///</summary>
        [SugarColumn(ColumnName = "PARENT_ID")]
        public decimal? ParentId { get; set; }
        /// <summary>
        /// 前端路由路径 (菜单权限使用) 
        ///</summary>
        [SugarColumn(ColumnName = "PATH")]
        public string Path { get; set; }
        /// <summary>
        /// 前端组件名 
        ///</summary>
        [SugarColumn(ColumnName = "COMPONENT")]
        public string Component { get; set; }
        /// <summary>
        /// 图标 
        ///</summary>
        [SugarColumn(ColumnName = "ICON")]
        public string Icon { get; set; }
        /// <summary>
        /// 排序号 
        ///</summary>
        [SugarColumn(ColumnName = "ORDER_NUM")]
        public decimal? OrderNum { get; set; }
        /// <summary>
        /// 是否可见 
        ///</summary>
        [SugarColumn(ColumnName = "IS_VISIBLE")]
        public short? IsVisible { get; set; }
        /// <summary>
        /// HTTP方法 (API权限使用) 
        ///</summary>
        [SugarColumn(ColumnName = "API_METHOD")]
        public string ApiMethod { get; set; }
        /// <summary>
        /// API路径 (API权限使用) 
        ///</summary>
        [SugarColumn(ColumnName = "API_PATH")]
        public string ApiPath { get; set; }
    }
}
